package com.fancymusic.service.impl;

import com.fancymusic.dao.IManagerDao;
import com.fancymusic.entity.Manager;
import com.fancymusic.service.IManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ManagerServiceImpl implements IManagerService {
    @Autowired
    IManagerDao iManagerDao;

    @Override
    public Manager getManagerByName(Manager manager) {

        System.out.println("ManagerServiceImpl===getManagerByName==="+manager);
        return iManagerDao.getManagerByName(manager.getUsername());
    }
}
